STEP 2: Let's set up a variable to hold the number of experiments and an empty list to hold all of the event outcomes.

  • In LOGIC, click on . Drag out Integer Variable.
  • Change the name to num_experiments.
  • In SUBJECT, click on . Drag out Empty Data List.
  • Change the name to outcome_list.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)